﻿// <!CDATA[

function TABLE1_onclick() {

}

function validateFields() {
    if (document.getElementById("ctl00_ContentPlaceHolder3_wz_DMR_select_table").value == "") {
        document.getElementById("ctl00_ContentPlaceHolder3_wz_DMR_lblMessage").innerHTML = "Please select a table from the list";
        return false;
    }

    return true;
}

function validateSelFields() {
    if (document.getElementById("ctl00_ContentPlaceHolder3_wz_DMR_Column_Name").options.length == 0) {
        document.getElementById("ctl00_ContentPlaceHolder3_wz_DMR_lblMessage1").innerHTML = "Please select a column from the list";
        return false;
    }
    else if (document.getElementById("ctl00_ContentPlaceHolder3_wz_DMR_cmbCondition").value == "") {
        document.getElementById("ctl00_ContentPlaceHolder3_wz_DMR_lblMessage1").innerHTML = "Please select a condition from the list";
        return false;
    }
    else if (document.getElementById("ctl00_ContentPlaceHolder3_wz_DMR_cmbValue").value == "") {
        document.getElementById("ctl00_ContentPlaceHolder3_wz_DMR_lblMessage1").innerHTML = "Please select a value from the list";
        return false;
    }
    return true;
}
function validateSelselFields() {
    if (document.getElementById("ctl00_ContentPlaceHolder3_wz_DMR_cmbConditionSet").options.length == 0) {
        document.getElementById("ctl00_ContentPlaceHolder3_wz_DMR_lblMessage1").innerHTML = "Please select a column from the list to set value";
        return false;
    }
    else if (document.getElementById("ctl00_ContentPlaceHolder3_wz_DMR_txtValueSet").value == "") {
        document.getElementById("ctl00_ContentPlaceHolder3_wz_DMR_lblMessage1").innerHTML = "Please enter a value in text box";
        return false;
    }
    return true;
}

debugger;
// ]]>